import { createApp } from "vue";
import { createPinia } from "pinia";
import router from "./router";

import App from "./App.vue";

import "element-plus/dist/index.css";
import "./styles/main.css";

import ElementPlus from "element-plus";
import MittPlugin from "@/plugins/MittPlugin";
import ResizePlugin from "@/plugins/ResizePlugin";
import PageCachePlugin from "@/plugins/PageCachePlugin";
import TabsPlugin from "@/plugins/PageTabPlugin";
import "@/plugins/TinymcePlugin";

import "ag-grid-community/styles/ag-grid.css";
import "ag-grid-community/styles/ag-theme-alpine.css";
import "ag-grid-community/styles/ag-theme-balham.css";

import "virtual:svg-icons-register";

createApp(App)
  .use(createPinia())
  .use(router)
  .use(ElementPlus)
  .use(MittPlugin)
  .use(ResizePlugin)
  .use(PageCachePlugin)
  .use(TabsPlugin)
  .mount("#app")
;
